# -*- coding: utf-8 -*-
# @Time    : 2021/10/19 8:27
# @Author  : super
class A(object):
	__toch = 10
	def __init__(self, age):
		self.age = age
	def dog(self):
		print("这是一只A狗")
		print("年龄",self.age)

	@classmethod
	def get_toch(self):
		return self.__toch

	@classmethod
	def set_toch(self, toch):
		self.__toch = toch

	@staticmethod
	def wock():
		print("你在狗叫吗.....")

class B(A):
	def __init__(self, age):
		super().__init__(age = age)
	def dog(self):
		print("这是一只B狗")
		print("年龄", self.age)

class C(A):
	def __init__(self, age):
		super().__init__(age = age)
	def dog(self):
		print("这是一只C狗")
		print("年龄", self.age)

class D(object):
	def zhui(self, item):
		print("调用：", item)
		item.dog()
a = A(1)
b = B(2)
c = C(3)
d = D()
d.zhui(a)
d.zhui(b)
d.zhui(c)
print(a.get_toch())
a.set_toch(200)
print(a.get_toch())
print(A.get_toch())
print(A.wock())
print(a.wock())